FROM golang:alpine3.14 as builder
# 安装网卡
#RUN apt update  -y &&  apt full-upgrade  -y
#RUN apt-get install -y net-tools
#RUN apt-get install -y iputils-ping
#RUN apt-get install -y iproute2
#设置 代理
ENV GOPROXY https://goproxy.io
ENV GO111MODULE on
RUN mkdir -p /go/cache
RUN mkdir -p /go/release
WORKDIR /go/cache
RUN yum install glibc-static.x86_64 -y
WORKDIR /go/release
ADD . .
